<!DOCTYPE html>
<script type="text/javascript" src="../js/angular.min.js" ></script>
<script type="text/javascript" src="../js/angular-route.min.js" ></script>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
	</head>
	<body ng-app="myapp">
		<div>
			<h1>HEAD</h1>
			<ul>
				<li><a href="#/">首页</a></li>
				<li><a href="#/users">用户管理</a></li>
				<li><a href="#/products">商品管理</a></li>
			</ul>			
		</div>
		<div ng-view>
		</div>
		<div>
			<li>Font</li>
		</div>
		
		<script type="text/javascript">
			var myapp = angular.module("myapp" ,['ngRoute']);
			myapp.config(["$routeProvider",function($routeProvider){
				// 设置路由对应页面 
			$routeProvider
			.when("/", {template: '这是首页'})
			.when("/users", {template: '这是用户管理页面'})
			.when("/products", {templateUrl: '05_route_3.html'})
			.otherwise({redirectTo: '/'});
			}]);
		</script>
	</body>
</html>
